package org.aeon.message.response;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.aeon.entity.dto.ChatGroupDto;
import org.aeon.entity.dto.UserDto;

import java.io.Serial;
import java.util.List;

/**
 * @author: MissingAeon
 * @date: 2024/2/22 15:54
 * @description:
 */
@Getter
@Setter
@ToString
public class SearchResponseMessage extends ResponseMessage {
    @Serial
    private static final long serialVersionUID = -278004239884948753L;
    private List<UserDto> users;
    private List<ChatGroupDto> groups;

    public void setMessages(List<UserDto> users, List<ChatGroupDto> groups) {
        this.users = users;
        this.groups = groups;
    }

    @Override
    public int getMessageType() {
        return SearchResponseMessage;
    }
}
